<?php
/**
 * Created by PhpStorm.
 * User: mr.hao
 * Date: 2018/6/29
 * Time: 17:24
 */

namespace App\Http\Controllers;


use App\Blog;

class EntryController extends Controller
{
    public function index(){

        $blog = Blog::paginate(5);
//        他其实也就是个数组
//        dd($blog->toArray());

//        加载首页模板
        return view("shouye",compact("blog"));
//        return 123;
    }
}